#include "TextureManager.h"


cTexture cTextureManager::GetTexture( std::string sFilename)
{
   //Seek for the texture element
  for (cTextureListIt lcIt = mTextures.begin(); lcIt != mTextures.end(); lcIt++)
  {
    //If the id id found get the values
    if ((*lcIt).GetName() == sFilename)
    {
      return (*lcIt);
    }
  }

  cTexture lTexture;
  lTexture.Load(sFilename);
  mTextures.push_back(lTexture);
  return lTexture;
}
